package com.bjpowernode.db.mapper;

import com.bjpowernode.db.domain.SysAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
* @author DLJD
* @description 针对表【u_finance_account(用户财务资金账户表)】的数据库操作Mapper
* @createDate 2023-09-15 09:34:03
* @Entity com.bjpowernode.db.domain.SysAccount
*/
public interface SysAccountMapper extends BaseMapper<SysAccount> {

    SysAccount selectByUidForUpdate(@Param("uid") Integer uid);

    int updateByBidProduct(@Param("uid") Integer uid, @Param("bidMoney") BigDecimal bidMoney);

    int updateAvailableMoneyByIncomeBack(@Param("uid") Integer uid, @Param("incomeMoney") BigDecimal incomeMoney, @Param("bidMoney") BigDecimal bidMoney);

    //充值 更新账号余额
    int updateAvailableMoneyByRecharge(@Param("uid") Integer uid, @Param("rechargeMoney") BigDecimal rechargeMoney);
}




